package com.woniuxy.cloud.carl.store.client.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.util.Date;
import java.util.List;

@Data
public class AddCommentParam {

    /**
     * 订单项id
     */
    private Long orderItemId;

    /**
     * 对门店的评分
     */
    @Range(min = 0,max = 5,message = "评分只能为0到5")
    private Double storeScore;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 对商品的评分
     */
    @Range(min = 0,max = 5,message = "评分只能为0到5")
    private Double skuScore;

    /**
     * 评价内容
     */
    private String content;

    private List<String> commentAnnex;

    /**
     * 对服务的评分
     */
    @Range(min = 0,max = 5,message = "评分只能为0到5")
    private Double serviceScore;
}
